#ifndef __C_TPOOLCLOCK_H__
#define __C_TPOOLCLOCK_H__

#include <pthread.h>
#include "C_Sockets.h"
typedef  struct connection_node S_connection_node, * LP_connection_node;
class CTPlock
{
public:
	CTPlock(pthread_mutex_t* pMutex)
	{
		m_pMutex = pMutex;
		pthread_mutex_lock(m_pMutex);
	}
	~CTPlock()
	{
		pthread_mutex_unlock(m_pMutex);
	}
private:
	pthread_mutex_t* m_pMutex;
};



#endif